﻿@using Resources;
<script type="text/javascript" src="@Url.Content(@properties.personaJS)" ></script> 
<script type="text/javascript">
    $(function () {
        setAutoAyudaEmpresa("#nIdePersonaSocio", "#nIdeCodPaisDocSocio", "#nIdeTipoDocumSocio", "#nIdeNumDocumSocio", "#vNombresSocio", "/AutoAyuda/ListaPersonaAuto", "1");
        setAutoAyudaEmpresa("#nIdePersonaSocio", "#nIdeCodPaisDocSocio", "#nIdeTipoDocumSocio", "#vNombresSocio", "#nIdeNumDocumSocio", "/AutoAyuda/ListaPersonaAuto", "2");
    });
</script>
<div id="divDatosRefFamiliarSocio" >@RenderPage("../../Shared/ROSocioEconomicaRefFam.cshtml")</div>
<fieldset style="width: 700px;">
    <legend><span>Referencia Familiarpp</span></legend>
    <table>
            <tr>
                <td>País Emisor<span class="asterisco">(*)</span></td>
                <td>Tipo documento<span class="asterisco">(*)</span></td>
                <td>Número documento<span class="asterisco">(*)</span></td>
                <td>Nombres de la persona de referencia<span class="asterisco">(*)</span></td>
                <td id="tdImagenSocio1" rowspan="4"><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  id="imgAgregar" onclick="javascript:registrarRefFamiliarSocioMante(this,'#divDatosRefFamiliarSocio');"/></td>
            </tr>
            <tr>
                <td>
                    @Html.DropDownList("nIdeCodPaisDocSocio", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor, "--Seleccione--")
                </td>
                <td>
                    @Html.DropDownList("nIdeTipoDocumSocio", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--")
                </td>
                <td>
                    @Html.TextBox("nIdeNumDocumSocio", null, new { style = "width:100px;", maxlength = 120 })
                </td>
                <td>
                    @Html.TextBox("vNombresSocio", null, new { style = "width:320px;", maxlength = 120 })
                    <img src="@Url.Content("~/images/newPerson.jpg")" class="lupita2"  onclick="javascript: regPersonaNaturalPop('1',this);" /><input type="hidden" id="nIdePersonaSocio" />
                </td>
            </tr>
            <tr>
                <td>Parentesco<span class="asterisco">(*)</span></td>
                <td>Trabaja<span class="asterisco">(*)</span></td>
                <td>Vive con Ud?<span class="asterisco">(*)</span></td>
                <td>Salud / Diagnóstico</td>
            </tr>
            <tr>
                <td>@Html.DropDownList("nIdeParentesco", (IEnumerable<SelectListItem>)ViewBag.ParentescoFamiliar, "--Seleccione--")</td>
                <td>
                    <select id="nIdeTrabaja" name="nIdeTrabaja">
                        <option value="">--Selecione--</option>
                        <option value="1">SI</option>
                        <option value="0">NO</option>
                    </select>
                </td>
                <td>
                    <select id="nIdeViveContigo" name="nIdeViveContigo" onchange="javascript:habiltaSaludDiag(this);">
                        <option value="">--Selecione--</option>
                        <option value="1">SI</option>
                        <option value="0">NO</option>
                    </select>
                </td>
                <td>@Html.DropDownList("nIdeCie10", (IEnumerable<SelectListItem>)ViewBag.Cie10, "--Seleccione--", new { disabled=true })</td>
            </tr>
    </table>
</fieldset>